﻿<%@page import="java.util.*;"%><!--导入java.util下所有类  -->
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<html>
<head>
<TITLE>学生信息列表</TITLE> 
<style type="text/css">
	/*位置超链接样式*/
	a{
		text-decoration: none;
		color:black;
		border:1px solid white;
		background-color: #C0C0C0;
	}
	a:hover{
		background-color: #C9C9C9;
	}
</style>

</head>
<!--学生列表显示页面  -->
<BODY>
<TABLE width="98%" border=0>
<TBODY>
		<TR>
			<TD>
					当前位置：<a href="right_begin.html" target="main">学生信息管理</a>
					&gt;&gt;<a href="studentListServlet" target="main">学生信息列表</a>
			</TD>
		</TR>
		<TR>
			<TD>
				<TABLE borderColor=#cccccc cellSpacing=0 cellPadding=0 width="100%" align=center border=0 style="margin-top:10px;">
					<TBODY>
						<!--第一部分开始-->
						<TR>
							<TD>
								<TABLE cellSpacing=0 cellPadding=2 border=0>
									<TBODY>
											<TR>
												<TD>
													<a href="/classStudentMS/studentTotalServlet" target="main" style="border:1px solid black;background-color: #C0C0C0;text-decoration: none;color:black;padding:5px;font-size:11px;margin-right:5px">
														<font>统计学生数量</font>
													</a>
												</TD>
												<%  Integer total=(Integer)request.getAttribute("total"); 
													if(total!=null){
												%>
												<TD>
													<input type="text" size="3" value="<%=total %>"/>
												</TD>
												<%
													}
													else{
												%>
												<TD>
													<input type="text" size="3" value=""/>
												</TD>
												<%
													}
												%>
											</TR>
									</TBODY>
								</TABLE>
							</TD>
						</TR>
			    		<!--第一部分结束-->
			    		
			    		<!--第二部分开始  -->
						<TR>
							<TD>
								<TABLE cellSpacing=1 cellPadding=2 rules=all border=0 style="BORDER-LEFT-WIDTH: 0px; BORDER-LEFT-COLOR: #cccccc; BORDER-BOTTOM-WIDTH: 0px; BORDER-BOTTOM-COLOR: #cccccc; WIDTH: 100%; BORDER-TOP-COLOR: #cccccc; FONT-STYLE: normal; BACKGROUND-COLOR: #cccccc; BORDER-RIGHT-WIDTH: 0px; TEXT-DECORATION: none; BORDER-RIGHT-COLOR: #cccccc">
									<TBODY>
										<TR style="FONT-WEIGHT: bold; FONT-STYLE: normal; BACKGROUND-COLOR: #eeeeee; TEXT-DECORATION: none">
											<TD>学号</TD>
											<TD>姓名</TD>
											<TD>班别</TD>
											<TD>院系专业</TD>
											<TD>操作</TD>
										</TR>
										<%
											Map<String ,String[]>map=(Map<String, String[]>) request.getAttribute("map");
											for(String key:map.keySet()) {
												String[] values = map.get(key);
										%>
										<TR style="FONT-WEIGHT: normal; FONT-STYLE: normal; BACKGROUND-COLOR: white; TEXT-DECORATION: none">
											<TD>
												<%=values[0] %>
											</TD>
											<TD>
												<%=values[1] %>
											</TD>
											<TD>
												<%=values[4] %>
											</TD>
											<TD>
												<%=values[5] %>
											</TD>
											<TD>
												<a href="/classStudentMS/selectUserServlet?sid=<%=values[0]%>" target="main">查看详情</a>
											</TD>
										</TR>
										<%
												}
										%>
		
									</TBODY>
								</TABLE>
							</TD>
						</TR>
						<!--第二部分结束-->
				</TBODY>
			</TABLE>
		</TD>
	</TR>
</TBODY>
</TABLE>
		
	
</BODY>
</HTML>
